/**
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * Copyright (c) 2023-present Kaleidos INC
 */

import { Component } from '@angular/core';
import { ConfigService } from '@taiga/cdk/services/config';
import { Router, RouterLink } from '@angular/router';
import { TuiButtonModule } from '@taiga-ui/core';
import { TranslocoDirective } from '@ngneat/transloco';
import { CommonModule, NgOptimizedImage } from '@angular/common';

@Component({
  selector: 'tg-error-500',
  templateUrl: './error-500.component.html',
  styleUrls: ['./error-500.component.css'],
  standalone: true,
  imports: [
    CommonModule,
    TranslocoDirective,
    RouterLink,
    TuiButtonModule,
    NgOptimizedImage,
  ],
})
export class Error500Component {
  constructor(private router: Router, public config: ConfigService) {}

  public refreshPage() {
    window.location.reload();
  }
}
